package com.hdaccp.shuiguoD.dao;


import com.hdaccp.shuiguoD.entity.Huiyuan;
import com.hdaccp.shuiguoD.entity.Huiyuanjibie;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface HuiyuanDao {
    //显示
    public List<Huiyuan> queryAll();
    //查询总条数
    public long getTotalCount(@Param("hname") String hname);

    //查询所有会员信息（分页）
    public List<Huiyuan> query(@Param("hname") String hname, @Param("offset") int offset, @Param("limit") int limit);

   //删除会员信息
    public int del(int id);

   //修改会员信息
  public int update(Huiyuan huiyuan);

   //根据id查询信息
   public Huiyuan getId(int id);

   //增加会员信息
   public int add(Huiyuan huiyuan);

//查询会员
    public int query1(String hname);

    public Huiyuanjibie query2(int hqid);
}
